/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utils;

import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import models.Student;
import models.Students;

/**
 *
 * @author plato
 */
public class CheckUnmashalling {

    public static void main(String[] args) {
        try {       
            Student student = new Student();
            student.setId(4);
            student.setAddress("uuu");
            AddToXml add = new AddToXml();
            add.addStudentToXml("d:\\student.xml", student);
//             EditToXml edit = new EditToXml();
//             edit.editStudentToXml("d:\\student.xml", student);
        } catch (JAXBException ex) {
            Logger.getLogger(CheckUnmashalling.class.getName()).log(Level.SEVERE, null, ex);
        }

       

    }
}
